﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASoft.Repository
{
    public class ASoftDataEntity
    {

        public int RecordTypeId { get; set; }

        public ERecordType RecordType
        {
            get
            {
                return (ERecordType)RecordTypeId;
            }
            set
            {
                this.RecordTypeId = (int)value;
            }
        }

        public string RecordTypeDescription
        {
            get
            {
                return AppUtility.GetEnumDescription(this.RecordType);
            }
        }


        public int RecordKey { get; set; }

        public DateTime RecordTime { get; set; }

        public string RecordData { get; set; }

        public string RecordTimeString
        {
            get
            {
                return RecordTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }

    }
}
